<template>
	<view>
		<image src="../../static/banner.png" mode="aspectFill" class="banner"></image>
		<view class="title">这里是活动标题</view>
		<view class="title1">这里是活动副标题 活动副标题</view>
		<view class="item">
			<text class="il">活动名额：</text><text class="ir">12人</text>
		</view>
		<view class="item">
			<text class="il">活动时间：</text><text class="ir">2020.03.03-2020.03.03</text>
		</view>
		<view class="item">
			<text class="il">报名时间：</text><text class="ir">2020.03.03-2020.03.03</text>
		</view>
		<view class="item">
			<text class="il">联系电话：</text><text class="ir">15605601068</text>
		</view>
		<view class="item">
			<text class="il">活动地址：</text><text class="ir">活动地址</text>
		</view>
		<view class="item">
			<text class="il">活动费用：</text><text class="ir">50元/人</text>
		</view>
		<view class="bottom">
			<view class="num">剩余名额：<text>4人</text></view>
			<view class="btn" @click="show=true">我要报名</view>
		</view>
		<u-popup v-model="show" mode="bottom" border-radius="14" closeable="true">
			<view class="box">
				<view class="ch">选择支付方式</view>
				<view class="yi">应支付</view>
				<view class="price">600</view>
				<view class="payitem">
					<view class="a">
						<u-icon name="zhifubao-circle-fill" color="#2979ff" size="60"></u-icon>
						<text>支付宝支付</text>
					</view>
					<view class="back" @click="type=1">
						<u-icon name="checkmark-circle-fill" color="#E6852C" size="34" v-if="type==1"></u-icon>
						<view class="quan" v-else></view>
					</view>
				</view>
				<view class="payitem">
					<view class="a">
						<u-icon name="weixin-circle-fill" color="#2BA245" size="60"></u-icon>
						<text>微信支付</text>
					</view>
					<view class="back" @click="type=2">
						<u-icon name="checkmark-circle-fill" color="#E6852C" size="34" v-if="type==2"></u-icon>
						<view class="quan" v-else></view>
					</view>
				</view>
				<view class="payitem">
					<view class="a">
						<u-icon name="rmb-circle-fill" color="#E6852C" size="60"></u-icon>
						<text>余额支付</text>
					</view>
					<view class="back" @click="type=3">
						<u-icon name="checkmark-circle-fill" color="#E6852C" size="34" v-if="type==3"></u-icon>
						<view class="quan" v-else></view>
					</view>
				</view>
				<view class="paybtn">确认支付</view>
			</view>
		</u-popup>
	</view>
</template>

<script>
	export default{
		data(){
			return{
				show:false,
				type:null
			}
		},
		methods:{
			
		}
	}
</script>

<style lang="less">
	.paybtn{
		width: 550rpx;
		height: 80rpx;
		background: #F09238;
		opacity: 1;
		border-radius: 40rpx;
		line-height: 80rpx;
		text-align: center;
		color: #FFFFFF;
		margin-left: 40rpx;
		margin-top: 60rpx;
	}
	.price{
		font-size: 36rpx;
		text-align: center;
		margin-top: 30rpx;
		margin-bottom: 40rpx;
	}
	.yi{
		font-size: 24rpx;
		font-family: PingFang SC;
		font-weight: 300;
		line-height: 30rpx;
		color: #333333;
		opacity: 1;
		text-align: center;
		margin-top:30rpx;
	}
	.ch{
		text-align: center;
		font-size: 28rpx;
		font-family: PingFang SC;
		font-weight: 800;
		line-height: 40rpx;
		color: #333333;
		opacity: 1;
	}
	.payitem{
		margin-bottom: 40rpx;
		display: flex;
		align-items: center;
		justify-content:space-between;
		padding: 0 60rpx;
		.a{
			display: flex;
			align-items: center;
		}
		.back{
			margin-left: 60rpx;
		}
	}
	.quan{
		border: 1px #999999 solid;
		width: 30rpx;
		height: 30rpx;
		border-radius: 30rpx;
	}
	.back{
		
	}
	.box{
		height: 750rpx;
		padding: 60rpx;
	}
	.num {
		font-size: 30rpx;
		color: #333;

		text {
			font-size: 34rpx;
			color: #E6852C;
		}
	}

	.btn {
		width: 197rpx;
		height: 67rpx;
		background: linear-gradient(132deg, #F09238 0%, #EC5F2A 100%);
		opacity: 1;
		border-radius: 8rpx;
		text-align: center;
		line-height: 67rpx;
		color: #FFFFFF;
	}

	.bottom {
		height: 150rpx;
		position: fixed;
		bottom: 0;
		left: 0;
		padding: 0 40rpx;
		box-sizing: border-box;
		width: 750rpx;
		display: flex;
		align-items: center;
		justify-content: space-between;
	}

	.il {
		font-weight: bold;
		color: #333333;
	}

	.ir {
		color: #E6852C;
	}

	.item {
		padding-left: 40rpx;
		margin-top: 30rpx;
		font-size: 30rpx;
	}

	.title1 {
		font-size: 24rpx;
		line-height: 30rpx;
		color: #333333;
		padding-left: 40rpx;
		box-sizing: border-box;
		margin-top: 20rpx;
	}

	.title {
		font-size: 32rpx;
		line-height: 45rpx;
		color: #333333;
		font-weight: bold;
		padding-left: 40rpx;
		box-sizing: border-box;
		margin-top: 40rpx;
	}

	.banner {
		width: 750rpx;
		height: 440rpx;
	}
</style>
